package com.demo.config.desensitizationConfig;

import io.swagger.annotations.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 脱敏测试接口
 */
@RestController
@RequestMapping("/test/desensitization")
public class DesensitizationTestController {

	/**
	 * 获取脱敏信息
	 */
	@GetMapping("/get-info")
	public static PersonalInfo getInt() {

		return PersonalInfo.builder().name("言冰云").phone("13812345678").email("mijiu@qq.com")
				.idCard("110101199003073321").address("四川省成都市郫都区百草路一号").password("1234567890")
				.bankCard("62220210001234567890").build();
	}

}